package vlms.bean;

/**
*
* This classes is the Data Transfer Object(Value Object) defination for the entity simplecustomer
*
*/

public class SimpleCustomer 
{
	private String membershipno;
	private float balance;
	private int outstandingmovie = 2;
	private int personid;


	public SimpleCustomer(){
		membershipno = null;
		balance = 0.0f;
		outstandingmovie = 2;	
		personid = 0;
	}
	public SimpleCustomer(String membershipno ,int balance ,int outstandingmovie ,int personid){
		this.membershipno = membershipno;
		this.balance = balance;
		this.outstandingmovie = outstandingmovie;
		this.personid = personid;
	}

	public SimpleCustomer(SimpleCustomer sc) {
		// TODO Auto-generated constructor stub
		this.membershipno = sc.membershipno;
		this.balance = sc.balance;
		this.outstandingmovie = sc.outstandingmovie;
		this.personid = sc.personid;
	}
	public void setMembershipno(String membershipno ){
		 this.membershipno =membershipno;
	}
	public String getMembershipno(){
		 return(membershipno);
	}
	public void setBalance(float f ){
		 this.balance =f;
	}
	public float getBalance(){
		 return(balance);
	}
	public void setOutstandingmovie(int outstandingmovie ){
		 this.outstandingmovie =outstandingmovie;
	}
	public int getOutstandingmovie(){
		 return(outstandingmovie);
	}
	public void setPersonid(int personid ){
		 this.personid =personid;
	}
	public int getPersonid(){
		 return(personid);
	}
	@Override
	public boolean equals(Object obj) {
		SimpleCustomer sc = (SimpleCustomer)obj;
		boolean result = false;
		if (this == obj || sc.getMembershipno() == membershipno)
		{
			result = true;
		}
		return result;
	}
}
